﻿@model IEnumerable<KKU.RBSFPP.Shared.DAC.FactorValue>

@{
    ViewBag.Title = "Index";
}

@Html.Partial("_FactorManagement")

<p>
    <a href= @Url.Action("Update", "Factor") class="btn btn-success"><span class="glyphicon glyphicon-plus"></span> อัพเดทราคา</a>
</p>



@*<table class="table table-hover">
    <tr>
        <th>
            ชื่อปัจจัย
        </th>
        <th>
            ค่าปัจจัย
        </th>
        <th>
            @Html.DisplayNameFor(model => model.CreateOn)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.DeleteOn)
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Factor.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Value)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateOn)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.DeleteOn)
        </td>
        <td>
            @Html.ActionLink("Edit", "Edit", new { id=item.FactorValueId }) |
            @Html.ActionLink("Details", "Details", new { id=item.FactorValueId }) |
            @Html.ActionLink("Delete", "Delete", new { id=item.FactorValueId })
        </td>
    </tr>
}

</table>*@


อัพเดทล่าสุดเมื่อ: @ViewBag.LastUpdateOn

<table class="table table-hover">
    <tr>
        <th>
            ชื่อปัจจัย
        </th>
        <th>
            ค่าปัจจัย
        </th>
        <th>
            อัพเดทเมื่อวันที่
        </th>
       @* <th>
            @Html.DisplayNameFor(model => model.DeleteOn)
        </th>*@
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Factor.Description)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Value)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.CreateOn)
        </td>
       @* <td>
            @Html.DisplayFor(modelItem => item.DeleteOn)
        </td>*@
      @*  <td>  
            @Html.ActionLink("แก้ไข", "Edit", new { id=item.FactorValueId })                      
            @Html.ActionLink("Delete", "Delete", new { id=item.FactorValueId })
        </td>*@
    </tr>
}

</table>
@* <a href=@Url.Action("index", "FactorAll")><span></span> ดูรายละเอียด</a>*@

